package org.kl.bpm.repository.conf;

import java.util.List;

import org.kl.bf.repository.BasicRepository;
import org.kl.bpm.entity.conf.BpmConfNode;
import org.kl.bpm.entity.conf.BpmConfUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface BpmConfUserDao extends BasicRepository<BpmConfUser, String>, JpaSpecificationExecutor<BpmConfUser> {
	@Query("from BpmConfUser where value=? and type=? and priority=? and status=0 and bpmConfNode=?")
	BpmConfUser findByVTPB(String value, Integer type, Integer priority, BpmConfNode bpmConfNode);

	List<BpmConfUser> findByBpmConfNodeBpmConfBaseProcessDefinitionIdAndBpmConfNodeCode(String processDefinitionId, String code);

	List<BpmConfUser> findByBpmConfNodeId(String bpmConfNodeId);
	
	List<BpmConfUser> findByBpmConfNodeBpmConfBaseId(String baseId);


}
